package com.ucode.cgms.service.impl;

import com.ucode.cgms.mapper.CgmsCompanionProductMapper;
import com.ucode.cgms.service.CgmsCompanionProductService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Collection;

@Service
public class CgmsCompanionProductServiceImpl implements CgmsCompanionProductService {

    @Resource
    private CgmsCompanionProductMapper cgmsCompanionProductMapper;

    @Override
    public CgmsCompanionProductMapper initMapper() {
        return cgmsCompanionProductMapper;
    }

    @Override
    public int updateStatus(Collection<Long> ids, Integer status) {
        return cgmsCompanionProductMapper.updateStatus(ids, status, LocalDateTime.now());
    }

}
